package com.jky.stmall.front.mapper;

import com.jky.stmall.front.entity.GoodsPic;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface GoodsPicMapper {
    //只需要查询，根据商品id查询图片
    @Select("select * from goods_pic where goods_id=#{goodsId}")
    List<GoodsPic> selectByGoodsId(Integer goodsId);

}
